package com.sk.bilibili.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sk.bilibili.bean.Collect;
import com.sk.bilibili.dto.CollectInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
* @author 邵康
* @date 2021/11/25 15:36
*/
@Repository
public interface CollectMapper extends BaseMapper<Collect> {

    Page<Collect> pageType(Page<Collect> page,CollectInfo collectInfo);

    Page<Collect> pageSearch(Page<Collect> page,List<Integer> ids,String keyword);

    List<Map<String, Long>> getPageType(Integer favoritesId);

}
